package com.jewelry.web.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * 基础Action 实现SessionAware
 * 可以直接获取session中的内容
 * @author yangfeng
 *
 */
public abstract class SessionAction extends ActionSupport implements SessionAware {

	private static final long serialVersionUID = -1819357743759174104L;

	// 回话对象
	protected Map<String, Object> session;

	@Override
	public void setSession(Map<String, Object> session) {
		this.session = session;
	}

	public Map<String, Object> getSession() {
		return session;
	}
	
	protected String message;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
